package com.uzhie.exception;

import com.uzhie.web.bean.ErrorBean;

/**
 * Created by lilongfei on 2018/7/24.
 */
public class GPSException extends BussException {
    private int status = -1;
    private String message;

    public GPSException(String error) {
        this(0, error);
    }

    public GPSException(int status, String error) {
        super(error);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public ErrorBean getError(){
        ErrorBean error = new ErrorBean();
        error.setCode(status);
        error.setMsg(getMessage());
        return error;
    }

    public class Status {
        public final static String SIM_ERROR = "sim卡号为空";
        public final static String ORDER_ERROR = "jt200命令不可以为空";

        }
}
